1 package net.sf.flock.impl;
2
3 import java.net.URL;
4
5 import net.sf.flock.FeedI;
6 import net.sf.flock.FeedInfoI;
7 import net.sf.flock.MetaData;
8 import net.sf.flock.SubscriptionI;
9
10 /***
11 * @version $Revision$
12 * @author $Author$
13 */
14 class Subscription implements SubscriptionI {
15
16 private Feed feed;
17 private URL location;
18 private MetaData metaData;
19
20 public Subscription(URL location, MetaData metaData) {
21 this.setLocation(location);
22 this.metaData = new MetaData(metaData);
23 this.feed = new Feed();
24 this.feed.setSubscriptionInfo(this);
25 this.feed.setTitle("New feed");
26 }
27
28 /***
29 * @see net.sf.flock.SubscriptionI#getLocation()
30 */
31 public URL getLocation() {
32 return this.location;
33 }
34
35 public void setLocation(URL location) {
36 this.location = location;
37 }
38
39
40 /***
41 * @see net.sf.flock.SubscriptionInfoI#getMetaData()
42 */
43 public MetaData getMetaData() {
44 return this.metaData;
45 }
46
47 /***
48 * @see net.sf.flock.SubscriptionI#getFeed()
49 */
50 public FeedI getFeed() {
51 return this.feed;
52 }
53
54 /***
55 * @see net.sf.flock.SubscriptionInfoI#getFeedInfo()
56 */
57 public FeedInfoI getFeedInfo() {
58 return this.feed;
59 }
60
61 /***
62 * Sets the feed.
63 * @param feed The feed to set
64 */
65 public void setFeed(Feed feed) {
66 this.feed = feed;
67 }
68
69 }
This page was automatically generated by Maven